//移动端打开侧边栏
$(".moveNav .icon").click(function () {
    $(".sliderCon").show(0,function () {
        $(".sliderCon .sliderLeft").css("width","250px")
    })
   
})
$(".sliderCon .icon").click(function () {
    $(".sliderCon").hide(0,function () {
        $(".sliderCon .sliderLeft").css("width","0")
    })
    
})
if(sessionStorage.getItem("bgImg")){
    $(".centerbg").attr("style",'background-image: url(https://cn.bing.com/'+sessionStorage.getItem("bgImg")+')')
}else{
    $.get("/proxy/bing/HPImageArchive.aspx?format=js&idx=0&n=1",function(res){
        sessionStorage.setItem('bgImg',res.images[0].url)
        $(".centerbg").attr("style",'background-image: url(https://cn.bing.com/'+res.images[0].url+')')
    })
}
